import { makeAutoObservable } from 'mobx'
import type { SiteData } from './interface'

/**
 * 默认 siteData
 * @returns
 */
const getDefaultSiteData = (): SiteData => ({
    title: '',
    domain: '',
    copyright: '',
    technicalSupport: '',
})

export class SiteStore {
    public siteData: SiteData = getDefaultSiteData()

    constructor() {
        makeAutoObservable(this)
    }
}
